<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
        >
<f:view contentType="text/html">
    <h:head>
        <ui:insert name="header">
            <ui:include src="header.xhtml"/>
        </ui:insert>
        <style type="text/css">
            .ui-widget-content {
                background-color:#fffffe;
                background-image: url(resources/images/gradient.png);
                background-repeat: repeat-x;
                background-position: center top;
            }
        </style>
    </h:head>
    <h:body>
        <p:growl id="messages" widgetVar="wMessages" showDetail="true"
                 life="10000" sticky="false" autoUpdate="false" globalOnly="true">
        </p:growl>

        <h:panelGrid cellspacing="0" cellpadding="0" styleClass="wrapper" >
            <h:panelGrid columns="1" columnClasses="header,content">
                <h:panelGroup styleClass="centered">
                    <h:panelGrid columns="2" style="width: 100%;" styleClass="centered">
                        <h:graphicImage library="images" name="Logo_PRIOX.png"
                                        styleClass="banner ui-toolbar-group-left"/>
                        <h:panelGroup styleClass="header_welcome ui-toolbar-group-rigth">
                            <h:outputText value="#{messages.label_welcome} #{menuBean.usuario.nombreCompleto} | "
                                    />
                            <h:outputLink styleClass="text_title"
                                          value="#{facesContext.externalContext.requestContextPath}/j_spring_security_logout"
                                          icon="ui-icon-close"
                                    >
                                <h:outputText escape="false" styleClass="text_title"
                                              value="#{messages.label_logout}"/>
                            </h:outputLink>
                        </h:panelGroup>

                    </h:panelGrid>
                </h:panelGroup>
                <h:panelGroup>
                    <h:panelGrid cellspacing="0" cellpadding="0" styleClass="content">
                        <ui:insert name="content"/>
                    </h:panelGrid>
                    <ui:insert name="footer">
                        <!--<ui:include src="footer.xhtml"/>-->
                    </ui:insert>
                </h:panelGroup>
            </h:panelGrid>
        </h:panelGrid>

    </h:body>
</f:view>
</html>